package com.yonyou.gmmc.service.questionnaire.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TtQneResultExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TtQneResultExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andReplayIdIsNull() {
            addCriterion("REPLAY_ID is null");
            return (Criteria) this;
        }

        public Criteria andReplayIdIsNotNull() {
            addCriterion("REPLAY_ID is not null");
            return (Criteria) this;
        }

        public Criteria andReplayIdEqualTo(Long value) {
            addCriterion("REPLAY_ID =", value, "replayId");
            return (Criteria) this;
        }

        public Criteria andReplayIdNotEqualTo(Long value) {
            addCriterion("REPLAY_ID <>", value, "replayId");
            return (Criteria) this;
        }

        public Criteria andReplayIdGreaterThan(Long value) {
            addCriterion("REPLAY_ID >", value, "replayId");
            return (Criteria) this;
        }

        public Criteria andReplayIdGreaterThanOrEqualTo(Long value) {
            addCriterion("REPLAY_ID >=", value, "replayId");
            return (Criteria) this;
        }

        public Criteria andReplayIdLessThan(Long value) {
            addCriterion("REPLAY_ID <", value, "replayId");
            return (Criteria) this;
        }

        public Criteria andReplayIdLessThanOrEqualTo(Long value) {
            addCriterion("REPLAY_ID <=", value, "replayId");
            return (Criteria) this;
        }

        public Criteria andReplayIdIn(List<Long> values) {
            addCriterion("REPLAY_ID in", values, "replayId");
            return (Criteria) this;
        }

        public Criteria andReplayIdNotIn(List<Long> values) {
            addCriterion("REPLAY_ID not in", values, "replayId");
            return (Criteria) this;
        }

        public Criteria andReplayIdBetween(Long value1, Long value2) {
            addCriterion("REPLAY_ID between", value1, value2, "replayId");
            return (Criteria) this;
        }

        public Criteria andReplayIdNotBetween(Long value1, Long value2) {
            addCriterion("REPLAY_ID not between", value1, value2, "replayId");
            return (Criteria) this;
        }

        public Criteria andQneIdIsNull() {
            addCriterion("QNE_ID is null");
            return (Criteria) this;
        }

        public Criteria andQneIdIsNotNull() {
            addCriterion("QNE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andQneIdEqualTo(Integer value) {
            addCriterion("QNE_ID =", value, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdNotEqualTo(Integer value) {
            addCriterion("QNE_ID <>", value, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdGreaterThan(Integer value) {
            addCriterion("QNE_ID >", value, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("QNE_ID >=", value, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdLessThan(Integer value) {
            addCriterion("QNE_ID <", value, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdLessThanOrEqualTo(Integer value) {
            addCriterion("QNE_ID <=", value, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdIn(List<Integer> values) {
            addCriterion("QNE_ID in", values, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdNotIn(List<Integer> values) {
            addCriterion("QNE_ID not in", values, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdBetween(Integer value1, Integer value2) {
            addCriterion("QNE_ID between", value1, value2, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdNotBetween(Integer value1, Integer value2) {
            addCriterion("QNE_ID not between", value1, value2, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneVersionIsNull() {
            addCriterion("QNE_VERSION is null");
            return (Criteria) this;
        }

        public Criteria andQneVersionIsNotNull() {
            addCriterion("QNE_VERSION is not null");
            return (Criteria) this;
        }

        public Criteria andQneVersionEqualTo(BigDecimal value) {
            addCriterion("QNE_VERSION =", value, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionNotEqualTo(BigDecimal value) {
            addCriterion("QNE_VERSION <>", value, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionGreaterThan(BigDecimal value) {
            addCriterion("QNE_VERSION >", value, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("QNE_VERSION >=", value, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionLessThan(BigDecimal value) {
            addCriterion("QNE_VERSION <", value, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionLessThanOrEqualTo(BigDecimal value) {
            addCriterion("QNE_VERSION <=", value, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionIn(List<BigDecimal> values) {
            addCriterion("QNE_VERSION in", values, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionNotIn(List<BigDecimal> values) {
            addCriterion("QNE_VERSION not in", values, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("QNE_VERSION between", value1, value2, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("QNE_VERSION not between", value1, value2, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQtnIdIsNull() {
            addCriterion("QTN_ID is null");
            return (Criteria) this;
        }

        public Criteria andQtnIdIsNotNull() {
            addCriterion("QTN_ID is not null");
            return (Criteria) this;
        }

        public Criteria andQtnIdEqualTo(Integer value) {
            addCriterion("QTN_ID =", value, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdNotEqualTo(Integer value) {
            addCriterion("QTN_ID <>", value, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdGreaterThan(Integer value) {
            addCriterion("QTN_ID >", value, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("QTN_ID >=", value, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdLessThan(Integer value) {
            addCriterion("QTN_ID <", value, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdLessThanOrEqualTo(Integer value) {
            addCriterion("QTN_ID <=", value, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdIn(List<Integer> values) {
            addCriterion("QTN_ID in", values, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdNotIn(List<Integer> values) {
            addCriterion("QTN_ID not in", values, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdBetween(Integer value1, Integer value2) {
            addCriterion("QTN_ID between", value1, value2, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdNotBetween(Integer value1, Integer value2) {
            addCriterion("QTN_ID not between", value1, value2, "qtnId");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeIsNull() {
            addCriterion("SUBMIT_TIME is null");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeIsNotNull() {
            addCriterion("SUBMIT_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeEqualTo(Date value) {
            addCriterion("SUBMIT_TIME =", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeNotEqualTo(Date value) {
            addCriterion("SUBMIT_TIME <>", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeGreaterThan(Date value) {
            addCriterion("SUBMIT_TIME >", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("SUBMIT_TIME >=", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeLessThan(Date value) {
            addCriterion("SUBMIT_TIME <", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeLessThanOrEqualTo(Date value) {
            addCriterion("SUBMIT_TIME <=", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeIn(List<Date> values) {
            addCriterion("SUBMIT_TIME in", values, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeNotIn(List<Date> values) {
            addCriterion("SUBMIT_TIME not in", values, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeBetween(Date value1, Date value2) {
            addCriterion("SUBMIT_TIME between", value1, value2, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeNotBetween(Date value1, Date value2) {
            addCriterion("SUBMIT_TIME not between", value1, value2, "submitTime");
            return (Criteria) this;
        }

        public Criteria andOwnerIdIsNull() {
            addCriterion("OWNER_ID is null");
            return (Criteria) this;
        }

        public Criteria andOwnerIdIsNotNull() {
            addCriterion("OWNER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andOwnerIdEqualTo(Integer value) {
            addCriterion("OWNER_ID =", value, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdNotEqualTo(Integer value) {
            addCriterion("OWNER_ID <>", value, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdGreaterThan(Integer value) {
            addCriterion("OWNER_ID >", value, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("OWNER_ID >=", value, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdLessThan(Integer value) {
            addCriterion("OWNER_ID <", value, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdLessThanOrEqualTo(Integer value) {
            addCriterion("OWNER_ID <=", value, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdIn(List<Integer> values) {
            addCriterion("OWNER_ID in", values, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdNotIn(List<Integer> values) {
            addCriterion("OWNER_ID not in", values, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdBetween(Integer value1, Integer value2) {
            addCriterion("OWNER_ID between", value1, value2, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("OWNER_ID not between", value1, value2, "ownerId");
            return (Criteria) this;
        }

        public Criteria andUserAnswerIsNull() {
            addCriterion("USER_ANSWER is null");
            return (Criteria) this;
        }

        public Criteria andUserAnswerIsNotNull() {
            addCriterion("USER_ANSWER is not null");
            return (Criteria) this;
        }

        public Criteria andUserAnswerEqualTo(String value) {
            addCriterion("USER_ANSWER =", value, "userAnswer");
            return (Criteria) this;
        }

        public Criteria andUserAnswerNotEqualTo(String value) {
            addCriterion("USER_ANSWER <>", value, "userAnswer");
            return (Criteria) this;
        }

        public Criteria andUserAnswerGreaterThan(String value) {
            addCriterion("USER_ANSWER >", value, "userAnswer");
            return (Criteria) this;
        }

        public Criteria andUserAnswerGreaterThanOrEqualTo(String value) {
            addCriterion("USER_ANSWER >=", value, "userAnswer");
            return (Criteria) this;
        }

        public Criteria andUserAnswerLessThan(String value) {
            addCriterion("USER_ANSWER <", value, "userAnswer");
            return (Criteria) this;
        }

        public Criteria andUserAnswerLessThanOrEqualTo(String value) {
            addCriterion("USER_ANSWER <=", value, "userAnswer");
            return (Criteria) this;
        }

        public Criteria andUserAnswerLike(String value) {
            addCriterion("USER_ANSWER like", value, "userAnswer");
            return (Criteria) this;
        }

        public Criteria andUserAnswerNotLike(String value) {
            addCriterion("USER_ANSWER not like", value, "userAnswer");
            return (Criteria) this;
        }

        public Criteria andUserAnswerIn(List<String> values) {
            addCriterion("USER_ANSWER in", values, "userAnswer");
            return (Criteria) this;
        }

        public Criteria andUserAnswerNotIn(List<String> values) {
            addCriterion("USER_ANSWER not in", values, "userAnswer");
            return (Criteria) this;
        }

        public Criteria andUserAnswerBetween(String value1, String value2) {
            addCriterion("USER_ANSWER between", value1, value2, "userAnswer");
            return (Criteria) this;
        }

        public Criteria andUserAnswerNotBetween(String value1, String value2) {
            addCriterion("USER_ANSWER not between", value1, value2, "userAnswer");
            return (Criteria) this;
        }

        public Criteria andAnswerNoIsNull() {
            addCriterion("ANSWER_NO is null");
            return (Criteria) this;
        }

        public Criteria andAnswerNoIsNotNull() {
            addCriterion("ANSWER_NO is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerNoEqualTo(Integer value) {
            addCriterion("ANSWER_NO =", value, "answerNo");
            return (Criteria) this;
        }

        public Criteria andAnswerNoNotEqualTo(Integer value) {
            addCriterion("ANSWER_NO <>", value, "answerNo");
            return (Criteria) this;
        }

        public Criteria andAnswerNoGreaterThan(Integer value) {
            addCriterion("ANSWER_NO >", value, "answerNo");
            return (Criteria) this;
        }

        public Criteria andAnswerNoGreaterThanOrEqualTo(Integer value) {
            addCriterion("ANSWER_NO >=", value, "answerNo");
            return (Criteria) this;
        }

        public Criteria andAnswerNoLessThan(Integer value) {
            addCriterion("ANSWER_NO <", value, "answerNo");
            return (Criteria) this;
        }

        public Criteria andAnswerNoLessThanOrEqualTo(Integer value) {
            addCriterion("ANSWER_NO <=", value, "answerNo");
            return (Criteria) this;
        }

        public Criteria andAnswerNoIn(List<Integer> values) {
            addCriterion("ANSWER_NO in", values, "answerNo");
            return (Criteria) this;
        }

        public Criteria andAnswerNoNotIn(List<Integer> values) {
            addCriterion("ANSWER_NO not in", values, "answerNo");
            return (Criteria) this;
        }

        public Criteria andAnswerNoBetween(Integer value1, Integer value2) {
            addCriterion("ANSWER_NO between", value1, value2, "answerNo");
            return (Criteria) this;
        }

        public Criteria andAnswerNoNotBetween(Integer value1, Integer value2) {
            addCriterion("ANSWER_NO not between", value1, value2, "answerNo");
            return (Criteria) this;
        }

        public Criteria andUserQneRefIdIsNull() {
            addCriterion("USER_QNE_REF_ID is null");
            return (Criteria) this;
        }

        public Criteria andUserQneRefIdIsNotNull() {
            addCriterion("USER_QNE_REF_ID is not null");
            return (Criteria) this;
        }

        public Criteria andUserQneRefIdEqualTo(Integer value) {
            addCriterion("USER_QNE_REF_ID =", value, "userQneRefId");
            return (Criteria) this;
        }

        public Criteria andUserQneRefIdNotEqualTo(Integer value) {
            addCriterion("USER_QNE_REF_ID <>", value, "userQneRefId");
            return (Criteria) this;
        }

        public Criteria andUserQneRefIdGreaterThan(Integer value) {
            addCriterion("USER_QNE_REF_ID >", value, "userQneRefId");
            return (Criteria) this;
        }

        public Criteria andUserQneRefIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("USER_QNE_REF_ID >=", value, "userQneRefId");
            return (Criteria) this;
        }

        public Criteria andUserQneRefIdLessThan(Integer value) {
            addCriterion("USER_QNE_REF_ID <", value, "userQneRefId");
            return (Criteria) this;
        }

        public Criteria andUserQneRefIdLessThanOrEqualTo(Integer value) {
            addCriterion("USER_QNE_REF_ID <=", value, "userQneRefId");
            return (Criteria) this;
        }

        public Criteria andUserQneRefIdIn(List<Integer> values) {
            addCriterion("USER_QNE_REF_ID in", values, "userQneRefId");
            return (Criteria) this;
        }

        public Criteria andUserQneRefIdNotIn(List<Integer> values) {
            addCriterion("USER_QNE_REF_ID not in", values, "userQneRefId");
            return (Criteria) this;
        }

        public Criteria andUserQneRefIdBetween(Integer value1, Integer value2) {
            addCriterion("USER_QNE_REF_ID between", value1, value2, "userQneRefId");
            return (Criteria) this;
        }

        public Criteria andUserQneRefIdNotBetween(Integer value1, Integer value2) {
            addCriterion("USER_QNE_REF_ID not between", value1, value2, "userQneRefId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}